<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
</head>

<body>
  <script>
    const actions = new Map([
      [{ identity: 'guest', status: 1 }, () => {/*do sth*/ }],
      [{ identity: 'guest', status: 2 }, () => {/*do sth*/ }],
      [{ identity: 'guest', status: 2 }, () => {/*do sth*/ }]
    ])

    let action = [...actions].filter(([key, value]) => {
      return key.identity === "guest" && key.status === 2;
    })

    action.map((([key, value]) => {
      console.log(value)
    }))
  </script>
</body>

</html>